﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Runtime.Serialization;

using Unis.Framework.ORM.Attributes;


namespace KingRoad.EPM.PersonnelLogEntity.Model
{
    /// <summary> 
    /// 文件生成时间 2017/3/24 15:38:50
    /// </summary> 
    [Serializable]
    [ModelMap("Plm_PersonnelAttendance", new string[] { "PA_ID" })]
    public class PlmPersonnelattendanceInfo : BaseEntity
    {
        public PlmPersonnelattendanceInfo()
        {

        }
        
        
        private string _paId;
        /// <summary>
        /// 考勤记录主键
        /// </summary>
        [ColumnMap("PA_ID", System.Data.DbType.String)]
        public string PA_ID
        {
            get {return _paId;}
            set
            {
                if (object.Equals(this._paId, value) != true)
                {
                    this._paId = value;
                    this.RaisePropertyChanged("PA_ID");
                }
            }
        }
        
        
        private int _paUserid;
        /// <summary>
        /// 操作人ID
        /// </summary>
        [ColumnMap("PA_UserID", System.Data.DbType.Int32)]
        public int PA_UserID
        {
            get {return _paUserid;}
            set
            {
                if (object.Equals(this._paUserid, value) != true)
                {
                    this._paUserid = value;
                    this.RaisePropertyChanged("PA_UserID");
                }
            }
        }
        
        
        private string _paUsername;
        /// <summary>
        /// 操作人名称
        /// </summary>
        [ColumnMap("PA_UserName", System.Data.DbType.StringFixedLength)]
        public string PA_UserName
        {
            get {return _paUsername;}
            set
            {
                if (object.Equals(this._paUsername, value) != true)
                {
                    this._paUsername = value;
                    this.RaisePropertyChanged("PA_UserName");
                }
            }
        }
        
        
        private DateTime _paDate;
        /// <summary>
        /// 时间
        /// </summary>
        [ColumnMap("PA_Date", System.Data.DbType.DateTime)]
        public DateTime PA_Date
        {
            get {return _paDate;}
            set
            {
                if (object.Equals(this._paDate, value) != true)
                {
                    this._paDate = value;
                    this.RaisePropertyChanged("PA_Date");
                }
            }
        }
        
        
        private string _paJobnum;
        /// <summary>
        /// 工号
        /// </summary>
        [ColumnMap("PA_JobNum", System.Data.DbType.StringFixedLength)]
        public string PA_JobNum
        {
            get {return _paJobnum;}
            set
            {
                if (object.Equals(this._paJobnum, value) != true)
                {
                    this._paJobnum = value;
                    this.RaisePropertyChanged("PA_JobNum");
                }
            }
        }
        
        
        private string _paPersonnelid;
        /// <summary>
        /// 人员ID
        /// </summary>
        [ColumnMap("PA_PersonnelID", System.Data.DbType.String)]
        public string PA_PersonnelID
        {
            get {return _paPersonnelid;}
            set
            {
                if (object.Equals(this._paPersonnelid, value) != true)
                {
                    this._paPersonnelid = value;
                    this.RaisePropertyChanged("PA_PersonnelID");
                }
            }
        }
        
        
        private string _paPersonnelname;
        /// <summary>
        /// 人员姓名
        /// </summary>
        [ExcelImportValidation("姓名", 2, false, "请填写姓名", "姓名格式不正确")]
        [ColumnMap("PA_PersonnelName", System.Data.DbType.StringFixedLength)]
        public string PA_PersonnelName
        {
            get {return _paPersonnelname;}
            set
            {
                if (object.Equals(this._paPersonnelname, value) != true)
                {
                    this._paPersonnelname = value;
                    this.RaisePropertyChanged("PA_PersonnelName");
                }
            }
        }
        
        
        private string _paPost;
        /// <summary>
        /// 职位
        /// </summary>
        [ColumnMap("PA_Post", System.Data.DbType.StringFixedLength)]
        public string PA_Post
        {
            get {return _paPost;}
            set
            {
                if (object.Equals(this._paPost, value) != true)
                {
                    this._paPost = value;
                    this.RaisePropertyChanged("PA_Post");
                }
            }
        }
        
        
        private int _paUnitid;
        /// <summary>
        /// 单位ID
        /// </summary>
        [ColumnMap("PA_UnitID", System.Data.DbType.Int32)]
        public int PA_UnitID
        {
            get {return _paUnitid;}
            set
            {
                if (object.Equals(this._paUnitid, value) != true)
                {
                    this._paUnitid = value;
                    this.RaisePropertyChanged("PA_UnitID");
                }
            }
        }
        
        
        private string _paUnitcode;
        /// <summary>
        /// 单位编号
        /// </summary>
        [ColumnMap("PA_UnitCode", System.Data.DbType.StringFixedLength)]
        public string PA_UnitCode
        {
            get {return _paUnitcode;}
            set
            {
                if (object.Equals(this._paUnitcode, value) != true)
                {
                    this._paUnitcode = value;
                    this.RaisePropertyChanged("PA_UnitCode");
                }
            }
        }
        
        
        private string _paUnitname;
        /// <summary>
        /// 单位名称
        /// </summary>
        [ColumnMap("PA_UnitName", System.Data.DbType.StringFixedLength)]
        public string PA_UnitName
        {
            get {return _paUnitname;}
            set
            {
                if (object.Equals(this._paUnitname, value) != true)
                {
                    this._paUnitname = value;
                    this.RaisePropertyChanged("PA_UnitName");
                }
            }
        }
        
        
        private int _paWorkday;
        /// <summary>
        /// 应出勤天数
        /// </summary>
        [ColumnMap("PA_WorkDay", System.Data.DbType.Int32)]
        public int PA_WorkDay
        {
            get {return _paWorkday;}
            set
            {
                if (object.Equals(this._paWorkday, value) != true)
                {
                    this._paWorkday = value;
                    this.RaisePropertyChanged("PA_WorkDay");
                }
            }
        }
        
        
        private int _paAttendanceday;
        /// <summary>
        /// 实际出勤天数
        /// </summary>
        [ColumnMap("PA_AttendanceDay", System.Data.DbType.Int32)]
        public int PA_AttendanceDay
        {
            get {return _paAttendanceday;}
            set
            {
                if (object.Equals(this._paAttendanceday, value) != true)
                {
                    this._paAttendanceday = value;
                    this.RaisePropertyChanged("PA_AttendanceDay");
                }
            }
        }
        
        
        private int _paAbsenceday;
        /// <summary>
        /// 缺勤天数
        /// </summary>
        [ColumnMap("PA_AbsenceDay", System.Data.DbType.Int32)]
        public int PA_AbsenceDay
        {
            get {return _paAbsenceday;}
            set
            {
                if (object.Equals(this._paAbsenceday, value) != true)
                {
                    this._paAbsenceday = value;
                    this.RaisePropertyChanged("PA_AbsenceDay");
                }
            }
        }
        
        
        private int _paLeaveday;
        /// <summary>
        /// 请假天数
        /// </summary>
        [ColumnMap("PA_LeaveDay", System.Data.DbType.Int32)]
        public int PA_LeaveDay
        {
            get {return _paLeaveday;}
            set
            {
                if (object.Equals(this._paLeaveday, value) != true)
                {
                    this._paLeaveday = value;
                    this.RaisePropertyChanged("PA_LeaveDay");
                }
            }
        }
        
        
        private string _paLeaverecord;
        /// <summary>
        /// 请假记录
        /// </summary>
        [ColumnMap("PA_LeaveRecord", System.Data.DbType.StringFixedLength)]
        public string PA_LeaveRecord
        {
            get {return _paLeaverecord;}
            set
            {
                if (object.Equals(this._paLeaverecord, value) != true)
                {
                    this._paLeaverecord = value;
                    this.RaisePropertyChanged("PA_LeaveRecord");
                }
            }
        }
        
        
        private decimal _paFine;
        /// <summary>
        /// 罚款金额
        /// </summary>
        [ColumnMap("PA_Fine", System.Data.DbType.Decimal)]
        public decimal PA_Fine
        {
            get {return _paFine;}
            set
            {
                if (object.Equals(this._paFine, value) != true)
                {
                    this._paFine = value;
                    this.RaisePropertyChanged("PA_Fine");
                }
            }
        }
        
        
        private DateTime _paCreatetime;
        /// <summary>
        /// 创建时间
        /// </summary>
        [ColumnMap("PA_CreateTime", System.Data.DbType.DateTime)]
        public DateTime PA_CreateTime
        {
            get {return _paCreatetime;}
            set
            {
                if (object.Equals(this._paCreatetime, value) != true)
                {
                    this._paCreatetime = value;
                    this.RaisePropertyChanged("PA_CreateTime");
                }
            }
        }
        
        
        private string _paRemark;
        /// <summary>
        /// 备注
        /// </summary>
        [ColumnMap("PA_Remark", System.Data.DbType.String)]
        public string PA_Remark
        {
            get {return _paRemark;}
            set
            {
                if (object.Equals(this._paRemark, value) != true)
                {
                    this._paRemark = value;
                    this.RaisePropertyChanged("PA_Remark");
                }
            }
        }
        
        
    }
}



